/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client.event.category;

import org.lucava.boatskeeper.client.event.boat.*;
import com.google.gwt.event.shared.GwtEvent;

/**
 *
 * @author glenn
 */
public class ListCategoriesEvent extends GwtEvent<CategoryHandler> {

    public static GwtEvent.Type<CategoryHandler> TYPE = new GwtEvent.Type<CategoryHandler>();

    @Override
    public GwtEvent.Type<CategoryHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(CategoryHandler handler) {
        handler.onListCategories(this);
    }
}